<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class RoomKeywordRequest extends MineFormRequest
{
    public function saveRules(): array
    {
        return [
            'name' => 'required',
            'cfg' => 'required'
        ];
    }

    public function getInfoRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function updateRules(): array
    {
        return array_merge($this->saveRules(),[
            'id' => 'required'
        ]);
    }

    public function getActiveRoomsRules(): array
    {
        return [
            'scheme_id' => 'required'
        ];
    }

    public function setActiveRoomStatusRules()
    {
        return [
            'scheme_id' => 'required',
            'robot_id' => 'required',
            'room_wxid' => 'required'
        ];
    }
}